package com.pzb.wechat.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.io.Serializable;
import java.util.Date;

/**
 * 充值记录对象 wechat_recharge_log
 * 
 * @author Mr_Wu
 * @date 2022-03-11
 */
public class WechatRechargeLog implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 商户id */
    private String extAppid;

    /** 用户id */
    private String openid;

    /** 活动id */
    private Long discountId;

    /** 订单号 */
    private String orderNo;

    /** 支付金额 */
    private String payAmount;

    /** 获得金额 */
    private String balanceAmount;

    /** 0未支付 1支付成功 */
    private Integer payStatus;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setExtAppid(String extAppid) 
    {
        this.extAppid = extAppid;
    }

    public String getExtAppid() 
    {
        return extAppid;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setDiscountId(Long discountId) 
    {
        this.discountId = discountId;
    }

    public Long getDiscountId() 
    {
        return discountId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setPayAmount(String payAmount) 
    {
        this.payAmount = payAmount;
    }

    public String getPayAmount() 
    {
        return payAmount;
    }
    public void setBalanceAmount(String balanceAmount) 
    {
        this.balanceAmount = balanceAmount;
    }

    public String getBalanceAmount() 
    {
        return balanceAmount;
    }
    public void setPayStatus(Integer payStatus) 
    {
        this.payStatus = payStatus;
    }

    public Integer getPayStatus() 
    {
        return payStatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("extAppid", getExtAppid())
            .append("openid", getOpenid())
            .append("discountId", getDiscountId())
            .append("orderNo", getOrderNo())
            .append("payAmount", getPayAmount())
            .append("createTime", getCreateTime())
            .append("balanceAmount", getBalanceAmount())
            .append("payStatus", getPayStatus())
            .toString();
    }
}
